<?php

class StudentTransfer_Form_Movein extends StudentTransfer_Form_Transfer
{
    public function init()
    {
        parent::init();
        $this->addElement('text','student_id',array(
            'label' => 'student_id',
            'required' => true,
            'size'=>10,
            'filters'    => array('StringTrim','StripTags'),
        )) ->addElement('text','name',array(
            'label' => 'name',
            'required' => true,
            'size'=>10,
            'filters'    => array('StringTrim','StripTags'),
        )) ->addElement('radio', 'sex', array(
          'label'      => 'sex',
          'required'   => true,
          'filters'    => array('StringTrim'),
          'multiOPtions' => $this->arrayData['sex'],
          'separator'=>'&nbsp;'
          //  'validators' => array()
        ))->addElement('text', 'identification_number', array(
          'label'      => 'identification_number',
          'required'   => true,
          'filters'    => array('StringTrim','StripTags'),
           'size'=>10,
        ))->addElement('text', 'number', array(
          'label'      => 'number',
          'required'   => true,
          'filters'    => array('StringTrim','StripTags'),
           'size'=>10,
            'validators' => array('int')
        )
        );
        $this->getElement('date')->setValue(date("Y-m-d"));
        $this->removeElement('causation_kind');
        $this->setElementsBelongTo('move_in');
    }
}